//常量
require('es6-promise').polyfill()
export default class config {
  //axios请求配置
  static axiousConfig = {
    // timeout: 20000,//相应时间
    withCredentials: false, //不需要信任
    crossDomain: true, //跨域
  }
  //url地址
  static rootConfig = {
    apiRootPath: 'http://192.168.2.9:12200',

  }
  static constantConfig = {
    authorityConstant: 'CustomerAuthority', //权限名字
    menuConstant: 'CustomerMenu', //菜单名字
    userTokenConstant: 'X-Authorization', //token名字
    // loginUrlConstant: 'login',//登录页

  }

  static commonParameter = {
    osTenantId: "3ad8bce569694baabe8ee82555ee23ee",
  }
  //权限系统返回的状态码

  static stateCode = [{
    code: "10000",
    message: "token过期或不存在"
  },
  {
    code: "10001",
    message: "新建保存信息重复"
  },
  {
    code: "10002",
    message: "密码错误"
  },
  {
    code: "10003",
    message: "用户不存在"
  },
  {
    code: "10004",
    message: "系统错误"
  },
  {
    code: "10005",
    message: "租户id错误"
  },
  {
    code: "10006",
    message: "权限不足"
  },
  {
    code: "10007",
    message: "没有菜单权限"
  },
  {
    code: "10008",
    message: "没有角色权限"
  },
  {
    code: "10009",
    message: "缺少参数"
  },
  {
    code: "10010",
    message: "岗位互斥"
  }
  ]

}